package com.story.api.moduler.user.validator.impl;

import com.story.api.moduler.user.dao.UserLoginDao;
import com.story.api.moduler.user.validator.MsgValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-02 14:23
 */
@Service
public class MsgValidatorImpl implements MsgValidator{

    @Autowired
    private UserLoginDao userLoginDao;

    @Override
    public Integer getUserIdByPhoneNum(String phoneNum) {
        Integer userId = userLoginDao.getUserIdByPhone(phoneNum);
        return userId;
    }
}
